home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Programming / amigatalk / prelude / SMakeFile < prev    next >
Encoding:
Makefile  |  2001-03-06  |  6.4 KB  |  184 lines

  1. # ###############################################################
  2. #
  3. #  MakeFile for the standard prelude & related .p files. 
  4. # ###############################################################
  5. #
  6. PARSE  = AmigaTalk:c/Parse -hex
  7. #
  8. OUTDIR = AmigaTalk:Prelude/
  9. #
  10. INDIR  = AmigaTalk:General/
  11. #
  12. NPDIR  = AmigaTalk:General/NewParser/
  13. #
  14. PFILES = $(OUTDIR)Class.p $(OUTDIR)Object.p $(OUTDIR)String.p\
  15.  $(OUTDIR)LArray.p $(OUTDIR)Nil.p $(OUTDIR)Array.p $(OUTDIR)Boolean.p\
  16.  $(OUTDIR)True.p $(OUTDIR)False.p $(OUTDIR)Block.p $(OUTDIR)Symbol.p\
  17.  $(OUTDIR)Magnitude.p $(OUTDIR)Number.p $(OUTDIR)Integer.p $(OUTDIR)Char.p\
  18.  $(OUTDIR)Float.p $(OUTDIR)Radian.p $(OUTDIR)Point.p $(OUTDIR)Random.p\
  19.  $(OUTDIR)Collection.p $(OUTDIR)Bag.p $(OUTDIR)Set.p $(OUTDIR)KCollection.p\
  20.  $(OUTDIR)Dictionary.p $(OUTDIR)SCollection.p $(OUTDIR)Interval.p\
  21.  $(OUTDIR)Form.p $(OUTDIR)Pen.p $(OUTDIR)List.p $(OUTDIR)ACollection.p\
  22.  $(OUTDIR)File.p $(OUTDIR)ByteArray.p $(OUTDIR)Semaphore.p\
  23.  $(OUTDIR)Process.p $(OUTDIR)AmigaTalk.p $(OUTDIR)Link.p
  24. #
  25. # $(OUTDIR)Parse.p $(OUTDIR)ParseNodes.p $(OUTDIR)List.p\
  26. # $(OUTDIR)Encoder.p $(OUTDIR)Method.p 
  27. #
  28. # ------ Now for the Rules: -------------------------------------
  29. #
  30. #
  31. standard: $(PFILES) 
  32.   JOIN $(OUTDIR)class.p $(OUTDIR)object.p $(OUTDIR)string.p $(OUTDIR)larray.p $(OUTDIR)nil.p $(OUTDIR)array.p AS RAM:s1
  33.   JOIN $(OUTDIR)boolean.p $(OUTDIR)true.p $(OUTDIR)false.p $(OUTDIR)block.p $(OUTDIR)symbol.p $(OUTDIR)magnitude.p AS RAM:s2
  34.   JOIN RAM:s1 RAM:s2 $(OUTDIR)number.p $(OUTDIR)integer.p $(OUTDIR)char.p $(OUTDIR)float.p  AS RAM:s3
  35.   JOIN RAM:s3 $(OUTDIR)radian.p $(OUTDIR)point.p $(OUTDIR)random.p $(OUTDIR)collection.p $(OUTDIR)bag.p $(OUTDIR)set.p AS RAM:s4
  36.   JOIN $(OUTDIR)kcollection.p $(OUTDIR)dictionary.p $(OUTDIR)scollection.p AS RAM:s5
  37.   JOIN RAM:s4 RAM:s5 $(OUTDIR)interval.p $(OUTDIR)form.p $(OUTDIR)pen.p $(OUTDIR)list.p AS RAM:s6
  38.   JOIN $(OUTDIR)acollection.p $(OUTDIR)file.p $(OUTDIR)bytearray.p $(OUTDIR)semaphore.p AS RAM:s7
  39.   JOIN RAM:s6 RAM:s7 $(OUTDIR)process.p $(OUTDIR)AmigaTalk.p $(OUTDIR)Link.p as RAM:s8
  40. #
  41. #  JOIN $(OUTDIR)Parse.p $(OUTDIR)ParseNodes.p $(OUTDIR)Encoder.p $(OUTDIR)Method.p AS RAM:s9 
  42. #  JOIN RAM:s8 RAM:s9 AS RAM:final 
  43. #
  44.   COPY RAM:s8 TO $(OUTDIR)standard
  45.   DELETE RAM:s1 RAM:s2 RAM:s3 RAM:s4 RAM:s5 RAM:s6 RAM:s7 RAM:s8 RAM:final
  46. #
  47. # DELETE RAM:s9
  48. #
  49. newParser: $(PFILES) 
  50.   JOIN $(OUTDIR)Parse.p $(OUTDIR)ParseNodes.p $(OUTDIR)List.p $(OUTDIR)Encoder.p $(OUTDIR)Method.p AS RAM:s1
  51.   COPY RAM:s1 TO $(OUTDIR)newParser
  52.   DELETE RAM:s1
  53. #
  54. # ------ Parser Rules: ------------------------------------------
  55. #
  56. $(OUTDIR)Encoder.p: $(NPDIR)Encoder.st
  57.   $(PARSE) $(NPDIR)Encoder.st    >$(OUTDIR)Encoder.p
  58. #
  59. $(OUTDIR)Parse.p: $(NPDIR)Parse.st
  60.   $(PARSE) $(NPDIR)Parse.st      >$(OUTDIR)Parse.p
  61. #
  62. $(OUTDIR)ParseNodes.p: $(NPDIR)ParseNodes.st
  63.   $(PARSE) $(NPDIR)ParseNodes.st >$(OUTDIR)ParseNodes.p
  64. #
  65. $(OUTDIR)Method.p: $(NPDIR)Method.st
  66.   $(PARSE) $(NPDIR)Method.st     >$(OUTDIR)Method.p
  67. #
  68. # ------ Standard class Rules: ----------------------------------------
  69. #
  70. $(OUTDIR)Link.p: $(INDIR)Link.st
  71.   $(PARSE) $(INDIR)Link.st            >$(OUTDIR)Link.p
  72. #
  73. $(OUTDIR)Nil.p: $(INDIR)UndefinedObject.st
  74.   $(PARSE) $(INDIR)UndefinedObject.st >$(OUTDIR)Nil.p
  75. #
  76. $(OUTDIR)KCollection.p: $(INDIR)KeyedCollection.st
  77.   $(PARSE) $(INDIR)KeyedCollection.st >$(OUTDIR)KCollection.p
  78. #
  79. $(OUTDIR)SCollection.p: $(INDIR)SequenceableCollection.st
  80.   $(PARSE) $(INDIR)SequenceableCollection.st >$(OUTDIR)SCollection.p
  81. #
  82. $(OUTDIR)ACollection.p: $(INDIR)ArrayedCollection.st
  83.   $(PARSE) $(INDIR)ArrayedCollection.st >$(OUTDIR)ACollection.p
  84. #
  85. $(OUTDIR)Interval.p: $(INDIR)Interval.st
  86.   $(PARSE) $(INDIR)Interval.st   >$(OUTDIR)Interval.p
  87. #
  88. $(OUTDIR)Pen.p: $(INDIR)Pen.st
  89.   $(PARSE) $(INDIR)Pen.st        >$(OUTDIR)Pen.p
  90. #
  91. $(OUTDIR)List.p: $(INDIR)List.st
  92.   $(PARSE) $(INDIR)List.st       >$(OUTDIR)List.p
  93. #
  94. $(OUTDIR)ByteArray.p: $(INDIR)ByteArray.st
  95.   $(PARSE) $(INDIR)ByteArray.st  >$(OUTDIR)ByteArray.p
  96. #
  97. $(OUTDIR)Semaphore.p: $(INDIR)Semaphore.st
  98.   $(PARSE) $(INDIR)Semaphore.st  >$(OUTDIR)Semaphore.p
  99. #
  100. $(OUTDIR)Class.p: $(INDIR)Class.st
  101.   $(PARSE) $(INDIR)Class.st      >$(OUTDIR)Class.p
  102. #
  103. $(OUTDIR)Object.p: $(INDIR)Object.st
  104.   $(PARSE) $(INDIR)Object.st     >$(OUTDIR)Object.p
  105. #
  106. $(OUTDIR)String.p: $(INDIR)String.st
  107.   $(PARSE) $(INDIR)String.st     >$(OUTDIR)String.p
  108. #
  109. $(OUTDIR)LArray.p: $(INDIR)LArray.st
  110.   $(PARSE) $(INDIR)LArray.st     >$(OUTDIR)LArray.p
  111. #
  112. $(OUTDIR)Array.p: $(INDIR)Array.st
  113.   $(PARSE) $(INDIR)Array.st      >$(OUTDIR)Array.p
  114. #
  115. $(OUTDIR)Boolean.p: $(INDIR)Boolean.st
  116.   $(PARSE) $(INDIR)Boolean.st    >$(OUTDIR)Boolean.p
  117. #
  118. $(OUTDIR)True.p: $(INDIR)True.st
  119.   $(PARSE) $(INDIR)True.st       >$(OUTDIR)True.p
  120. #
  121. $(OUTDIR)False.p: $(INDIR)False.st
  122.   $(PARSE) $(INDIR)False.st      >$(OUTDIR)False.p
  123. #
  124. $(OUTDIR)Block.p: $(INDIR)Block.st
  125.   $(PARSE) $(INDIR)Block.st      >$(OUTDIR)Block.p
  126. #
  127. $(OUTDIR)Symbol.p: $(INDIR)Symbol.st
  128.   $(PARSE) $(INDIR)Symbol.st     >$(OUTDIR)Symbol.p
  129. #
  130. $(OUTDIR)Magnitude.p: $(INDIR)Magnitude.st
  131.   $(PARSE) $(INDIR)Magnitude.st  >$(OUTDIR)Magnitude.p
  132. #
  133. $(OUTDIR)Number.p: $(INDIR)Number.st
  134.   $(PARSE) $(INDIR)Number.st     >$(OUTDIR)Number.p
  135. #
  136. $(OUTDIR)Integer.p: $(INDIR)Integer.st
  137.   $(PARSE) $(INDIR)Integer.st    >$(OUTDIR)Integer.p
  138. #
  139. $(OUTDIR)Char.p: $(INDIR)Char.st
  140.   $(PARSE) $(INDIR)Char.st       >$(OUTDIR)Char.p
  141. #
  142. $(OUTDIR)Float.p: $(INDIR)Float.st
  143.   $(PARSE) $(INDIR)Float.st      >$(OUTDIR)Float.p
  144. #
  145. $(OUTDIR)Radian.p: $(INDIR)Radian.st
  146.   $(PARSE) $(INDIR)Radian.st     >$(OUTDIR)Radian.p
  147. #
  148. $(OUTDIR)Point.p: $(INDIR)Point.st
  149.   $(PARSE) $(INDIR)Point.st      >$(OUTDIR)Point.p
  150. #
  151. $(OUTDIR)Random.p: $(INDIR)Random.st
  152.   $(PARSE) $(INDIR)Random.st     >$(OUTDIR)Random.p
  153. #
  154. $(OUTDIR)Collection.p: $(INDIR)Collection.st
  155.   $(PARSE) $(INDIR)Collection.st >$(OUTDIR)Collection.p
  156. #
  157. $(OUTDIR)Bag.p: $(INDIR)Bag.st
  158.   $(PARSE) $(INDIR)Bag.st        >$(OUTDIR)Bag.p
  159. #
  160. $(OUTDIR)Set.p: $(INDIR)Set.st
  161.   $(PARSE) $(INDIR)Set.st        >$(OUTDIR)Set.p
  162. #
  163. $(OUTDIR)Dictionary.p: $(INDIR)Dictionary.st
  164.   $(PARSE) $(INDIR)Dictionary.st >$(OUTDIR)Dictionary.p
  165. #
  166. $(OUTDIR)Form.p: $(INDIR)Form.st
  167.   $(PARSE) $(INDIR)Form.st       >$(OUTDIR)Form.p
  168. #
  169. $(OUTDIR)File.p: $(INDIR)File.st
  170.   $(PARSE) $(INDIR)File.st       >$(OUTDIR)File.p
  171. #
  172. $(OUTDIR)Process.p: $(INDIR)Process.st
  173.   $(PARSE) $(INDIR)Process.st    >$(OUTDIR)Process.p
  174. #
  175. $(OUTDIR)AmigaTalk.p: $(INDIR)AmigaTalk.st
  176.   $(PARSE) $(INDIR)AmigaTalk.st  >$(OUTDIR)AmigaTalk.p
  177. #
  178. #
  179. # ------ Default for the rest of the rules: ---------------------
  180. #
  181. #.st.p:
  182. #  $(PARSE) $(INDIR)$>.st >$@  # Why don't this work all the time??
  183. #
  184.